package org.pzy.java.base;

import java.time.LocalDate;
import java.time.temporal.ChronoUnit;

public class Test {
    public static void main(String[] args) {
        LocalDate sjUpdateTime = LocalDate.of(2024, 3, 18);
        LocalDate now = LocalDate.now();
        LocalDate minus = now.minus(30, ChronoUnit.DAYS);
        boolean minusBefore = minus.isAfter(sjUpdateTime);
        if (minusBefore) {
            System.out.println(1);
        } else {
            System.out.println(2);
        }
    }
}
